<!DOCTYPE html>

<html
  lang="en"
  class="light-style customizer-hide"
  dir="ltr"
  data-theme="theme-default"
  data-assets-path="/static/index/user/assets/"
  data-template="vertical-menu-template">
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

    <title>{$error_tips}</title>

    <meta name="description" content="" />

    <!-- Favicon -->


    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com" />
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

    <!-- Icons -->
    <link rel="stylesheet" href="/static/index/user/assets/vendor/fonts/boxicons.css" />
    <link rel="stylesheet" href="/static/index/user/assets/vendor/fonts/fontawesome.css" />
    <link rel="stylesheet" href="/static/index/user/assets/vendor/fonts/flag-icons.css" />

    <!-- Core CSS -->
    <link rel="stylesheet" href="/static/index/user/assets/vendor/css/rtl/core.css" class="template-customizer-core-css" />
    <link rel="stylesheet" href="/static/index/user/assets/vendor/css/rtl/theme-default.css" class="template-customizer-theme-css" />
    <link rel="stylesheet" href="/static/index/user/assets/css/demo.css" />

    <!-- Vendors CSS -->
    <link rel="stylesheet" href="/static/index/user/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.css" />
    <link rel="stylesheet" href="/static/index/user/assets/vendor/libs/typeahead-js/typeahead.css" />

    <!-- Page CSS -->
    <!-- Page -->
    <link rel="stylesheet" href="/static/index/user/assets/vendor/css/pages/page-misc.css" />

    <!-- Helpers -->
    <script src="/static/index/user/assets/vendor/js/helpers.js"></script>
    <!--! Template customizer & Theme config files MUST be included after core stylesheets and helpers.js in the <head> section -->
    <!--? Template customizer: To hide customizer set displayCustomizer value false in config.js.  -->
    <script src="/static/index/user/assets/vendor/js/template-customizer.js"></script>
    <!--? Config:  Mandatory theme config file contain global vars & default theme options, Set your preferred theme option in this file.  -->
    <script src="/static/index/user/assets/js/config.js"></script>
  </head>

  <body>
    <!-- Content -->

    <!-- Error -->
    <div class="container-xxl container-p-y">
      <div class="misc-wrapper">
        <h2 class="mb-2 mx-2">{$error_tips}:(</h2>
        <br>

        <a href="{$error_url}" class="btn btn-primary">返 回 首 页</a>
        <div class="mt-3">
          <img
            src="/static/index/user/assets/img/illustrations/page-misc-error-light.png"
            alt="page-misc-error-light"
            width="500"
            class="img-fluid"
            data-app-dark-img="illustrations/page-misc-error-dark.png"
            data-app-light-img="illustrations/page-misc-error-light.png" />
        </div>
      </div>
    </div>
    <!-- /Error -->

    <!-- / Content -->

    <!-- Core JS -->
    <!-- build:js assets/vendor/js/core.js -->

    <script src="/static/index/user/assets/vendor/libs/jquery/jquery.js"></script>
    <script src="/static/index/user/assets/vendor/libs/popper/popper.js"></script>
    <script src="/static/index/user/assets/vendor/js/bootstrap.js"></script>
    <script src="/static/index/user/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.js"></script>
    <script src="/static/index/user/assets/vendor/libs/hammer/hammer.js"></script>
    <script src="/static/index/user/assets/vendor/libs/i18n/i18n.js"></script>
    <script src="/static/index/user/assets/vendor/libs/typeahead-js/typeahead.js"></script>
    <script src="/static/index/user/assets/vendor/js/menu.js"></script>

    <!-- endbuild -->

    <!-- Vendors JS -->

    <!-- Main JS -->
    <script src="/static/index/user/assets/js/main.js"></script>
  <script src='/static/index/pay/js/devtools-detector.js'></script>
    <script type="text/javascript">
// 监听按键
document.onkeydown = function () {
    // f12
    if (window.event && window.event.keyCode == 123) {
        alert("F12被禁用");
        event.keyCode = 0;
        event.returnValue = false;
    }
    // ctrl+shift+i
    if (window.event.ctrlKey && window.event.shiftKey && window.event.keyCode == 73) {
        alert("ctrl+shift+i被禁用");
        event.keyCode = 0;
        event.returnValue = false;
    }
    // ctrl+s
    if (window.event.ctrlKey && window.event.keyCode == 83) {
        alert("ctrl+s被禁用");
        event.keyCode = 0;
        event.returnValue = false;
    }

}

devtoolsDetector.addListener(function(isOpen) {
    if(isOpen){
        window.close();
    }
  });
  devtoolsDetector.launch();

//禁用调试工具
  var threshold = 160; // 打开控制台的宽或高阈值
  //每秒检查一次;
  var check = setInterval(function () {
    if (
      window.outerWidth - window.innerWidth > threshold ||
      window.outerHeight - window.innerHeight > threshold
    ) {
      // 如果打开控制台，则跳转页面
      // window.location.replace("about:blank");
      // 关闭当前页面
      self.opener = null;
      self.close();
    }
  }, 1000);



if (window.outerHeight - window.innerHeight > 150) {
     // 如果检测到开发者工具被打开，则执行关闭浏览器窗口的操作
    window.close();
}
if (window.outerWidth - window.innerWidth > 150) {
    // 如果检测到开发者工具被打开，则执行关闭浏览器窗口的操作
    window.close();
}
</script>
    <!-- Page JS -->
  </body>
</html>
